myChartOltDirect = echarts.init(document.getElementById('olt_direct_chart'));
var xAxisData = [];
var data1 = [5549];
var data2 = [222];
optionOltDirect = {
    title: {
        text: 'OLT直连占比',
        textStyle:{
            color: '#FFFFFF'
        }
    },
    color:['#00BCD2','#5ECF35'],
    graphic:{
        type: 'text',
        id: 'text1',
        left: '10%',
        top: '20%',
        style: {
            text: '4%',
            fontSize: '50',
            fill: '#FFFFFF'
        }
    },
    xAxis: {
        type: 'value',
        axisTick: {
            show:false
        },
        axisLabel: {
            show:false
        },
        splitLine: {
            show: false
        },
        axisLine:{
            show: false
        }
    },
    yAxis: {
        data: xAxisData,
        axisTick: {
            show:false
        },
        axisLabel: {
            show:false
        },
        splitLine: {
            show: false
        },
        axisLine:{
            show: false
        }
    },
    barWidth: 10,
    grid: {
        left: 20,
        top: 150
    },
    series: [

        {
            type: 'bar',
            stack: 'two',
            data: data1,
            label: {
                normal: {
                    show: true,
                    position: 'top',
                    textStyle:{
                        color: '#FFFFFF',
                        fontSize: '30'
                    }
                }
            },
        },
        {
            type: 'bar',
            stack: 'two',
            data: data2,
            label: {
                normal: {
                    show: true,
                    position: 'top',
                    textStyle:{
                        color: '#FFFFFF',
                        fontSize: '30'
                    }
                }
            },
        }
    ]
};
myChartOltDirect.setOption(optionOltDirect);